projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ff709c
)
Allow setting type hints on unmapped windows
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 28 Oct 2009 16:13:58 +0000
(12:13 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 28 Oct 2009 16:13:58 +0000
(12:13 -0400)
We set the hint on map, so it makes sense to check for GTK_WIDGET_MAPPED,
not GTK_WIDGET_VISIBLE as the code currently does.
gtk/gtkwindow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwindow.c
b/gtk/gtkwindow.c
index e0e6afe19626362a4dae64d91ea1efa72da7c163..ffd9d8a9b6f5f04e6fb5ce59bcf7c4bee1e58f58 100644
(file)
--- a/
gtk/gtkwindow.c
+++ b/
gtk/gtkwindow.c
@@
-2414,7
+2414,7
@@
gtk_window_set_type_hint (GtkWindow *window,
GtkWindowPrivate *priv;
g_return_if_fail (GTK_IS_WINDOW (window));
- g_return_if_fail (!GTK_WIDGET_
VISIBLE
(window));
+ g_return_if_fail (!GTK_WIDGET_
MAPPED
(window));
priv = GTK_WINDOW_GET_PRIVATE (window);